package com.example.batchprocessing;

import java.util.Random;
import lombok.Data;

@Data
public class Person {

	private String lastName;
	private String firstName;
	private Integer id;

	public Person() {
	}

	public Person(String firstName, String lastName) {
		this.firstName = firstName;
		this.lastName = lastName;
		this.id = new Random().nextInt();
	}

	Person increaseCreditBy(Integer size){
		this.id += size;
		return this;
	}
}
